<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type = "module">
			//必须加type = "module"
			//需同源
			import {name} from './module.js';
			console.log(name);
			
		</script>
	</body>
</html>
